package com.ctgu.server.dao.dto;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import java.util.Date;
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString(callSuper = true)
@ApiModel(value = "RegisterDto", description = "注册参数")
public class RegisterDto {
    private static final long serialVersionUID = 1L;



    @ApiModelProperty(value = "名称")
    @Length(max= 25,message = "名称长度不能超过20")
    private String userNickname;

    @ApiModelProperty(value = "用户名")
    @NotEmpty(message = "用户名不能为空")
    @Length(max= 25,message = "名称长度不能超过20")
    private String userName;

    @ApiModelProperty(value = "用户密码")
    @NotEmpty(message = "密码不能为空")
    private String userPassword;

    @ApiModelProperty(value = "用户电话")
    private String userPhone;

    @ApiModelProperty(value = "年级号(例如 2021，2022)")
    private String userGrade;

    @ApiModelProperty(value = "专业")
    private String userMajor;




}
